<?php
	// List Projects - Type = Solar Sign Lighting
	$rpsolarsignlighting = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Solar Sign Lighting');
	if($rpsolarsignlighting->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Solar Sign Lighting Projects</h2>
	<ul>
	<?php while($rpsolarsignlighting->have_posts()) : $rpsolarsignlighting->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Solar Security Lighting
	$rpsolarsecuritylighting = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Solar Security Lighting');
	if($rpsolarsecuritylighting->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Solar Security Lighting Projects</h2>
	<ul>
	<?php while($rpsolarsecuritylighting->have_posts()) : $rpsolarsecuritylighting->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Solar Flag Lighting
	$rpsolarflaglighting = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Solar Flag Lighting');
	if($rpsolarflaglighting->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Solar Flag Lighting Projects</h2>
	<ul>
	<?php while($rpsolarflaglighting->have_posts()) : $rpsolarflaglighting->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Solar Lighting
	$rpsolarlighting = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Solar Lighting');
	if($rpsolarlighting->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Solar Lighting Projects</h2>
	<ul>
	<?php while($rpsolarlighting->have_posts()) : $rpsolarlighting->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Solar Pumping
	$rpsolarpumping = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Solar Pumping');
	if($rpsolarpumping->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Solar Pumping Projects</h2>
	<ul>
	<?php while($rpsolarpumping->have_posts()) : $rpsolarpumping->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Portable Solar Power
	$rpportablepower = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Portable Solar Power');
	if($rpportablepower->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Portable Solar Power Projects</h2>
	<ul>
	<?php while($rpportablepower->have_posts()) : $rpportablepower->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Grid Tie Solar Power
	$rpgridtiesolarpower = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Grid Tie Solar Power');
	if($rpgridtiesolarpower->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Grid Tie Solar Power Projects</h2>
	<ul>
	<?php while($rpgridtiesolarpower->have_posts()) : $rpgridtiesolarpower->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Remote Solar Power
	$rpremotesolarpower = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Remoate Solar Power');
	if($rpremotesolarpower->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Remoate Solar Power Projects</h2>
	<ul>
	<?php while($rpremotesolarpower->have_posts()) : $rpremoatesolarpower->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>

<?php
	// List Projects - Type = Custom Solar Product
	$rpcustomproduct = new wp_query('cat=1338&meta_key=RPsystemtype&meta_value=Custom Solar Product');
	if($rpcustomproduct->have_posts()) {
?>

<div style="width:50%;float:left;margin:0px;">
	<h2 class="pagesubsectionheader">Custom Solar Product Projects</h2>
	<ul>
	<?php while($rpcustomproduct->have_posts()) : $rpcustomproduct->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
	</ul>
</div>

<?php } ?>